package com.ibeifeng.crm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ibeifeng.crm.bean.Notice;

import com.ibeifeng.crm.dao.NoticeDao;

import com.ibeifeng.crm.service.NoticeService;

@Service
public class NoticeServiceImpl implements NoticeService {
	@Resource
	NoticeDao noticeDao;
	@Override
	public List<Notice> queryAll() {
		return noticeDao.queryAll();
	}

	@Override
	public int add(Notice notice) {
		return noticeDao.add(notice);
	}

	@Override
	public int update(Notice notice) {
		return noticeDao.update(notice);
	}

	@Override
	public int delete(Notice notice) {
		return noticeDao.delete(notice);
	}

	@Override
	public Notice queryNotice(Notice notice) {
		return noticeDao.queryNotice(notice);
	}

	@Override
	public int count() {
		return noticeDao.count();
	}

	@Override
	public List<Notice> findAllSplit(int pg, int pgSize) {
		return noticeDao.findAllSplit(pg,pgSize);
	}

	@Override
	public List<Notice> mquery(int pg, int pgSize, String keyWord) {
		// TODO Auto-generated method stub
		return noticeDao.mquery(pg, pgSize, keyWord);
	}

	

}
